You are here: Trading System Programming > Reference > Classes > Order > Order Methods > setStopPrice

setStopPrice

The setStopPrice method sets the stop price for the order.

Syntax

setStopPrice(stopPrice);

Parameters

stopPrice

Stop price for the order. Stop price can only be set for stop or stop limit orders.

Example

See placeOrder() in Account class for an example on how to use setStopPrice() method.

 


Copyright © 2006-2009 ActiveTick LLC